home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
disk
/
upcopy60.zip
/
UPCSYNC.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-09-22
|
728b
|
27 lines
@ECHO OFF > SEARCH.LIS
IF NOT "%3"=="" GOTO UNREADONLY
IF NOT "%2"=="" GOTO NEXT
ECHO.
ECHO E.G. UPCSYNC C:\ D:\
ECHO.
ECHO This is an example batch file to synchronize two directories
ECHO leaving out certain files. It sets a list of files read-
ECHO only and then runs UPCOPY. You will probably need to
ECHO add/remove some files from the list. If you 'break out'
ECHO with ctrl-c you need to type 'UPCSYNC C:\ D:\ -R' to remove the
ECHO read-only status.
ECHO.
GOTO END
:NEXT
ATTRIB +R %1AUTOEXEC.BAT
ATTRIB +R %1CONFIG.SYS
ATTRIB +R %2AUTOEXEC.BAT
ATTRIB +R %2CONFIG.SYS
UPCOPY %1 %2
:UNREADONLY
ATTRIB -R %1AUTOEXEC.BAT
ATTRIB -R %1CONFIG.SYS
ATTRIB -R %2AUTOEXEC.BAT
ATTRIB -R %2CONFIG.SYS
:END